<?php
/*
 * Header
 * @package    pre
 * @author     Mark
 * @copyright  Copyright (c) 2013 ixdcw team
 * @version    $Id: 07e4f0a28413c222e0fb3f642d7d841c561115a0 $
 */
class Header {

	/**
	 * 重定向
	 * @param $url
	 */
	public static function location($url) {
		header('location:' . $url);
		exit();
	}

	/**
	 * 输出 404 头
	 */
	public static function code404(){
		@header("HTTP/1.1 404 Not Found");
	}
}